# c = [1,2,3,20,80]
# d = [1,2,3,20,100]

# def getMinAndMax(list):

#     min = list[3]
#     max = list[0]
#     for num in list:
#         if num < min:
#             min = num
#         if num > max:
#             max = num
#     return (min, max)


# print(getMinAndMax(c))
# print(getMinAndMax(d))

# L = [x * x for x in range(10)]
# for i in L:
#     print(i)

# g = (x * x for x in range(10))
# for i in g:
#     print(i)

# stra = 'bacd1234'
# for e in stra:
#     print(e)    

# d = {'a': 1, 'b': 2, 'c': 3}
# print(d['c'])


# # print(d)
# for key in d:
#     print(key)
#     print(d[key])

# for ch in 'ABC':
#     print(ch)

# def findMinAndMax(L):
#     for x in L:
#         if x > min:
#             min = x
#         if x < max:
#             max = x
#             x = [6, 9, 4, 2, 1, 3]
#     return (min, max)
# print(L)

# 测试
# if findMinAndMax([]) != (None, None):
#     print('测试失败!')
# elif findMinAndMax([7]) != (7, 7):
#     print('测试失败!')
# elif findMinAndMax([7, 1]) != (1, 7):
#     print('测试失败!')
# elif findMinAndMax([7, 1, 3, 9, 5]) != (1, 9):
#     print('测试失败!')
# else:
#     print('测试成功!')

# print(list(range(1, 11)))

# L = []
# for x in range(1, 11):
#    L.append(x * x)

# L = [x * x for x in range(1, 11)]

# L = [x * x for x in range(1, 11) if x % 2 == 0]

# L = [m + n for m in 'ABC' for n in 'XYZ']
# print(L)

# d = {'x': 'A', 'y': 'B', 'z': 'C' }
# for k, v in d.items():
#     print(k, '=', v)

# d = {'x': 'A', 'y': 'B', 'z': 'C' }
# print([k + '=' + v for k, v in d.items()])

# L1 = ['Hello', 'World', 18, 'Apple', None]
# L2 = [ s.lower() for s in L1 if isinstance(s, str) ]
# print(L2)
# if L2 == ['hello', 'world', 'apple']:
#     print('测试通过!')
# else:
#     print('测试失败!')

# x = 'abc'
# y = 123
# print(isinstance(x, str))
# print(isinstance(y, str))

# print(0x1022ef630)

# g = (x * x for x in range(10))
# print(g)

# def fib(max):
#     n, a, b = 0, 0, 1
#     while n < max:
#         print(b)
#         a, b = b, a + b
#         n = n + 1
#     return 'done'
# print(fib(6))


for n in'abc':
    print(n)